package com.lv.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lv.common.dto.OrderDto;
import com.lv.common.dto.OrderList;
import com.lv.common.dto.OrderMain;
import com.lv.entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 凉薄
 * @since 2022-01-21
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    IPage<OrderList> getAllOrder(Page<?>page,String custName,String status);
    OrderMain getOrderMainById(Long id);
    OrderDto getOrderById(Long id);
    BigDecimal getAllUnpaidAmount();
    BigDecimal getTrue();
    BigDecimal getFalse();
}
